"use strice";

const Controller = require("../common/shop");


class MemberController extends Controller {
  tableName = "member";
// 获取用户详细
  async memberCount() {
    let siteId = await this.getSiteId()
    let result = await this.consult({site_id:siteId[0].site_id});

    this.resData(0, '会员列表获取成功',result);
  }
// 关键字查询member表
  async membeQuery(){
    let siteId = await this.getSiteId()
    let {current, pageSize, ...param} = this.ctx.request.body.value
    param.site_id = siteId[0].site_id
    console.log('param',param);
    let result = await this.vagueConsult(param)
    this.resData(0, '查询成功',result);
  }


}

module.exports = MemberController;
